package com.zbkj.crmeb.merchant.api.request;

import com.common.PageParamRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class BroadcastRoleRequest extends PageParamRequest implements Serializable {

    @ApiModelProperty(value = "取值[1-管理员，2-主播，3-运营者]，设置超级管理员将无效")
    @NotNull(message = "角色不能为空")
    private Integer role;

    @ApiModelProperty(value = "微信号")
    @NotBlank(message = "微信号不能为空")
    private String username;

}